/**
@file     	DESIGNPATTERN_Flyweight.h
@brief    	1.When the algorithm to create complex object should be independent of the part of the object,
as well as their assembly;
2.When construction process must be allowed to construct the object is different;
@author  	arvin
@version 	1.0   2012/12/20
*/

#ifndef CXX_DESIGNPATTERN_FLYWEIGHT_H
#define CXX_DESIGNPATTERN_FLYWEIGHT_H
#include <string>

using namespace std;

class Flyweight
{
public:
	/**
	* Destruction
	*
	* @param VOID
	* @return
	*/
	virtual ~Flyweight();

	/**
	* Operation
	*
	* @param VOID
	* @return VOID
	*/
	virtual VOID Operation();

	/**
	* GetIntrinsicState
	*
	* @param VOID
	* @return string
	*/
	string GetIntrinsicState();

protected:
	/**
	* Construction
	*
	* @param const string& strIntrinsicState
	* @return
	*/
	Flyweight(const string& strIntrinsicState);

	/**
	* GetIntrinsicState
	*
	* @param const string& strIntrinsicState
	* @return VOID
	*/
	VOID SetIntrinsicState(const string& strIntrinsicState);
private:
	/**
	* Construction
	*
	* @param VOID
	* @return
	*/
	Flyweight();

	/**
	* Copy Construction
	*
	* @param const Flyweight& cFlyweight
	* @return
	*/
	Flyweight(const Flyweight& cFlyweight);

	/**
	* Assignment
	*
	* @param const Flyweight& cFlyweight
	* @return Flyweight&
	*/
	Flyweight& operator=(const Flyweight& cFlyweight);

public:
protected:
private:
	string m_strIntrinsicState;
};

#endif	/* >>CXX_DESIGNPATTERN_FLYWEIGHT_H<< */
/* EOF */